<ul>
  {us:category id=0}
  {us:foreach $list as $k => $v}
  
    <li><a href="{us:$v['url']}" >{us:$v['name']}</a>
     {us:if $v['child']} <i class="sp_nav_xjb"> </i>
    
      <ul >
        {us:category id=$v['id']}
        {us:foreach $list as $k => $v}
           <li><a href="{us:$v['url']}">{us:$v['name']}</a></li> 
        {us:/foreach}
        {us:/category}
    </ul>
    {us:/if}
    </li>
    {us:/foreach}
        {us:/category}
  </ul>